<template>
  <div class="header">
    <div class="header-left">
      <span class="iconfont icon-fanhui back-icon"></span>
    </div>
    <div class="header-input">
      <span class="iconfont icon-sousuo"></span>
      默认/景点/游玩/主题
      </div>
      <router-link to="/city">
        <div class="header-right">
          {{city}}
          <span class="iconfont icon-jiantou"></span>
        </div>
      </router-link>
  </div>
</template>

<script>
export default {
  name: 'Header',
  props: {
    city:{
      type:String,
      default:"上海"
    }
  },
  data () {
    return {
    }
  },

  methods: {}
}
</script>

<style lang='scss' scoped>
@import '~@style/common/common.scss';
.header{
  height: 86px;
  display: flex;
  line-height: 86px;
  background: #00bcd4;
  color: #fff;
  .header-left{
    width: 64px;
    float: left;
    .back-icon{
      font-size: 40px;
      text-align: center;
    }
  }
  .header-right{
    width: 124px;
    float: right;
    text-align: center;
  }
  .header-input{
    flex:1;
    height: 64px;
    margin-top: 12px;
    margin-left: 20px;
    padding-left: 20px;
    color: #ccc;
    line-height: 64px;
    background-color: #fff;
    border-radius: 5px;
  }
}
</style>
